﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AARS.master" AutoEventWireup="true"
    CodeFile="Home.aspx.cs" Inherits="Home" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script language="javascript" type="text/javascript">
        function printForm() {
            window.open();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Panel ID="pnlBody" runat="server">
        <div id="stylized" class="myform">

            <table class="myform" >
                <tr>
                    <td colspan="4">
                        <h1>Registration Form</h1>
                        <p>Fill This form either for registration or membership. Before Filling this form get your draft or cheque ready.</p>
                    </td>
                </tr>
                <tr>
                    <td><label>Name</label></td>
                    <td>
                         <asp:TextBox ID="txtName" runat="server" name="Name"></asp:TextBox>
                         <asp:Label ID="lblNameValue" runat="server" Visible="false"></asp:Label>
                    </td>
                    <td><label>Amount</label></td>
                    <td>
                        <asp:TextBox ID="txtAmount" runat="server" name="Amount"></asp:TextBox>
                        <asp:Label ID="lblAmmountValue" runat="server" Visible="false"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><label>Fathers's  Name</label></td>
                    <td>
                        <asp:TextBox ID="txtFatherName" runat="server" name="FatherName"></asp:TextBox>
                        <asp:Label ID="lblFatherNameValue" runat="server" Visible="false"></asp:Label>
                    </td>
                    <td><label>Draft/Check No.</label></td>
                    <td>
                        <asp:TextBox ID="txtDraftNo" runat="server" name="DraftNo"></asp:TextBox>
                        <asp:Label ID="lblDraftNoValue" runat="server" Visible="false"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><label>Gender</label></td>
                    <td>
                        Female
                        Male</td>
                    <td><label>Dated</label></td>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td><label>Registration Type</label></td>
                    <td>
                        Regt./ Member</td>
                    <td><label>Bank Name</label></td>
                    <td>
                        <asp:TextBox ID="txtBankName" runat="server" name="BankName"></asp:TextBox>
                        <asp:Label ID="lblBankNameValue" runat="server" Visible="false"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><label>Address-1</label></td>
                    <td>
                        <asp:TextBox ID="txtAddress1" runat="server" name="Address1"></asp:TextBox>
                        <asp:Label ID="lblAddress1Value" runat="server" Visible="false"></asp:Label>
                    </td>
                    <td><label>Village/City</label></td>
                    <td>
                        <asp:TextBox ID="txt" runat="server" name="Village"></asp:TextBox>
                        <asp:Label ID="lblVillageValue" runat="server" Visible="false"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><label>Address-2</label></td>
                    <td>
                        <asp:TextBox ID="txtAddress2" runat="server" name="Address2"></asp:TextBox>
                        <asp:Label ID="lblAddress2Value" runat="server" Visible="false"></asp:Label>
                    </td>
                    <td><label>Post Office</label></td>
                    <td>
                        <asp:TextBox ID="txtPostOffice" runat="server" name="PostOffice"></asp:TextBox>
                        <asp:Label ID="lblPostOfficeValue" runat="server" Visible="false"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><label>Police Station</label></td>
                    <td>
                       <asp:TextBox ID="txtPoliceStation" runat="server" name="PoliceStation"></asp:TextBox>
                       <asp:Label ID="lblPoliceStationValue" runat="server" Visible="false"></asp:Label>
                    </td>
                    <td><label>Pin Code</label></td>
                    <td>
                        <asp:TextBox ID="txtPinCode" runat="server" name="PinCode"></asp:TextBox>
                        <asp:Label ID="lblPinCodeValue" runat="server" Visible="false"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td><label>State</label></td>
                    <td>
                       <asp:TextBox ID="txtState" runat="server" name="State"></asp:TextBox>
                       <asp:Label ID="lblStateValue" runat="server" Visible="false"></asp:Label>
                    </td>
                    <td><label>Country</label></td>
                    <td>
                        <asp:TextBox ID="txtCountry" runat="server" name="Country"></asp:TextBox>
                        <asp:Label ID="lblCountryValue" runat="server" Visible="false"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="text-align:center;">
                        <asp:Button ID="btnSubmit" class="submit" runat="server" text="Submit" 
                            onclick="btnSubmit_Click" />
                        <asp:Button ID="btnPrint" class="submit" runat="server" text="Print" OnClientClick="javascript:printForm()" Visible="false" 
                            onclick="btnPrint_Click"/>                 
                    </td>            
                </tr>        
            </table>
    
        </div>
    </asp:Panel>
</asp:Content>
